const express = require("express")
const { queryTopic } = require("../../../dao")
const router = express.Router()


router.get("/topic", async (req, resp) => {
    let result
    try {
        result = await queryTopic()
    } catch (error) {
        result = []
    }
    resp.json(result)
})

module.exports = router